Added wrapper function.

When I switched from the build script to Grunt I forgot to add the
wrapper function, this fix adds it back.