build js and css into plot