JavaScript files and assignments