js refactor & individual project template