I was learning phantom.js and wanted to know when the google nexus 4 was back in stock, so I put the two together and wrote this little script. It's very lazy, but kinda works, however sometimes they change the class name, so then it breaks.

To run: phantomjs nexus_check.coffee