Added AMD, node and angular support