3js functions

js file function