Bugfix for asset from gem

 - add support asset from gem (javascript and stylesheet)
 - small refactor
 - add .idea to gitignore