removing bower component nested from within javascript