Put js scripts at bottom in template. BREAKING CHANGE! for template use PrintFooter() insead of PrintFooter(). Modified gerDevices.php to bind values by value.