some minor changes with jquery