tidy up build file
reopen #33, doesn't work in IE8