Fixed resize JS that was messed up from merge issues