Port Grunfile to JavaScript

Last of the coffeescript that needs to be ported before #646 can be implemented.

Signed-off-by: Don Naegely <naegelyd@gmail.com>