General code cleanup (terminated statements, removed unused variables, optimized jQuery calls, ..)