terms and javascript