Cleanup JS in prelude.

I tidied up the the JS `function` definitions in `prelude.purs` file as I was reading through. They're were inconsistent with other the definitions in the file. I hope it's not being too picky but I've been writing a lot of JS lately :wink: