Fix Firefox Bug

$(document).ready() inside window.onload doesn’t work