Javascripts almost Fixed

@ahmedhagii @MohabGhanim @Mamdou7 @metawaa 

There are still two javascript files not modified but they won't cause any errors at all