reorganize and optimize js
project in pre-finished state