Made it a proper jquery