Adding bower file and converting to state logic