sample javascript file