Inserted code is messed up, check https://gist.github.com/Achal-Aggarwal/7073914 instead of the above comment