STart on the Javascript fundtions