Reorganised directory structure, moved JS files to own directory