fixing jQuery issues