Initial angular js port.