added format.js to idex in pins_controller