JS: change pictures in if else