reverted back to $(document).ready