changed dynamically created 'text' to 'number' and made sure js is pointing to the correct js file