added js file for online use