Add load_const for Javascript