Added file support for JS