Put Angular in Javascript file and fix the click issues