small code for basic html attribute bind to javascript scope