Moved loading js to end of file to not block UI