fixed __init__ with keyword args in javascript mode.