cleaned up jquery, used gem