prepping for anglularjs conversion