fixed bugs with HP not pointing to the right directories for JS and CSS files.