[bugfix] moved necessary js files back to header