added doubleclickfix.js to template. This fixes a bug in mojarra 2.2
where some buttons need to be clicked twice in order to work. (this will
be fixed in mojarra 2.3) 

See stackoverflow: http://stackoverflow.com/a/11412138/1922505
for more details.