Divide operation and type to different files

Revise the js files, and create Operations.js Types.js and Utils.js