Functions intro in js