sample javascript