Mode register css, js to separate file

Mode register css, js to separate file