Moved script tags thanks to @beryllium