created first js function file