Runing JS after onload. Added comments to JS.