Put javascript codes in js files