Updated to 3.4 JS Api