Write firefox os sample code using html5 and java script