Fixed bug causing some js assets to be loaded twice.