def servejs():
 import gluon.contenttype
 response.headers['Content-Type'] = gluon.contenttype.contenttype('.js')
 return 'alert("This is a Javascript document, it is not supposed to run!");'

def servejs ( ) : import gluon . contenttype response . headers [ 'Content-Type' ] = gluon . contenttype . contenttype ( '.js' ) return 'alert("This is a Javascript document, it is not supposed to run!");'
serves a js document .