Fix undefined reference errors with JSHint. A little too much magic.