moved HTML imports to top of files (fixes things in JS)