rebuilt the engine by moving the js to public