Adds jQuery to karma, defines stubs, fixes syntax in spec.