WIP reorganizing frontend js. Updated README