moved common js scripts to inc