Updated JavaScript files to new format etc