refactor js / add handlebar partials