fix global var use. add compiled to allow bower use