Fix codeclimate code smells in instant.js