improve Jajascript