js hint passing