changed to $(document).ready for cross browser startup