Cleaned up the logic for the model example, made it a bit pretty with Bootstrap. Also included jQuery dependency.