Refactor css jscript into resource manifest