move css call to js file