Place all init in function that waits for window onload. Moved script links in index to the header.