Completed basic code for goo.gl