Rename application-alternative to application
Extract controller to global
Using sample: http://jsfiddle.net/danielzen/utp7j/