jquerified the functions