moved js files around for better directory structure