Added jshint configuration
Cleaned up unecessary helpers & fixed code styel to match our standard & fixed some apparent bugs