fix grunt generation to get javascript and css files, put file access in a common script