reorganize js and home