added js code the handling permanent or temporary address enable or disable based on user actions #5