Common JS for Ruby