Replaced annonymous function by a function to be able to call it on window resize
Merge pull request #33 from khalid-bd/js_function_replace_doc_ready

Replaced annonymous function by a function to be able to call it on wind...