major js changes

files moved to better location
renamed custom.js to main.js
seperate js code in multiple files
search/contact added
update/contact (add Contact to CG) added