Added jquery library so jquery.code wasn't repeatedly hit. Fitness function rewritten and general debugging