Changed javascript's place, did not wait document ready