fixed indentation for .js files and added bindings for buffer resizing