Tested with Caspter and JSHint