Post: Parsing URLs with Javascript