import javascript has issues, why can't it be added at the end of <head>
tag?