Here is the error I get:
sergio@sergio-VirtualBox:~/blog$ rake db:create rake aborted! Could not find a JavaScript runtime. See https://github.com/sstephenson/ex
There are several fairly similar options such rubytheracer, node and execjs.
rubytheracer has fallen out of favor due to its code size. Vendors such as Heroku (for rails) actively discourage it.
I currently recommend node.js
More info at Rails - Could not find a JavaScript runtime?