fix in page helper for autoloading js files