updated to use public directory for js/ css/ folders