Load jQuery before executing click function

jQuery loads after the click function has executed results in '$ is not defined'. Preloading jQuery solves this.