working jquery, time for ajax/refactoring