<script type="text/javascript">
$(document).ready(function(){

//Check if the current URL contains '#'
if(document.URL.indexOf("#")==-1)
{
...