fix angular js example