I dont know js well enough lets rails instead