Updates Ruby version and Recompiles JS

Updates ruby to 2.1.x
Recompiles the JavaScript
Adds a JS function map