Added missing semicolons

Fixes #1
Changed name of non-existing variable $res to correct $response

Fixes #2