Notes on javascript concepts, working examples for self