Working on JavaScript files