actually initialize the best in place javascript