Fixing JS and CSS resources issues on first time run