move createExplorerView into $(document).ready function