implement js in haml