moved code-behind into front-end file

moved code-behind into front-end file for maximum portability and
deployment ability
Merge pull request #1 from mursino/master

updated portability by moving into a single file