Modified main handlebard to handle jquery