uncomment rubyracer in gemfile if is available or none js runtime is detected

refactoring suggested by @simi
Merge pull request #2109 from keram-refinery/fix_2001

fix #2001