Placed JavaScript files in a new 'js' directory
Added licence