fix to ignore the .js suffix for javascript resource