More angular-friendly client side scripting