Javascript ~ Js function differently, odds are suggestions, i exclude document ready