chore(lib): Tidy JS and add other things from previous grunt plugin