fixed bug where JS and CSS was not rendering properly