js now calls ruby proc (callable)