Create if.js

ifs in ruby