create js directory and added js files
add files and fixed javascript