Python Method Chaining Javascript Console Compiler