abstracted out js and css from main file