#1468 for 4_6_x #1639 js_init removal #1640