Check the URL in java scripts