Conversion to javascript complete