Use jquery location instead