Took Mike's query parameter fun and implemented it in response.write()