Move src js to lib