use phantomjs
cp js files at the root level