update function names to js convention