fix lookup of assets in subdirectories
ignore compiles gems
organize and simplify javascript
memoize asset path
resolve local assets only