Re the first example you'd want a key in the querystring something like ?temp=23
You'd then be able to access as a.query["temp"].
In your second I can see what you want to do but syntax not quite right. You'd split to a new variable for one thing.
Happy to give you the right code later - on a mobile currently- but this may help you
http://www.w3schools.com/jsref/jsref_split.asp
@Ollie started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Re the first example you'd want a key in the querystring something like ?temp=23
You'd then be able to access as a.query["temp"].
In your second I can see what you want to do but syntax not quite right. You'd split to a new variable for one thing.
Happy to give you the right code later - on a mobile currently- but this may help you
http://www.w3schools.com/jsref/jsref_split.asp