Remove lambda keyword from javascript