Finally fixed so that it handles tabbing correctly
Some jslinting
Some more
More linting going on