some angular js code.