Initial method in JavaScript. Some kind of tip ;)