updated php dynamic generation of dir paths for stylesheets and js files