Some notes on javaScript