setting up events handlebar js