Use $(document).ready() to initialise browse JS