added javascript for enable disable btn
javascript optimization