Make javascript functions with better signatures.