default template data array for FF

default an empty templates object to fix a race that occasionally occurs in firefox.

Also fix some input styling for firefox