Javascript fixes and bf4 overlay