#147 Create Javascript Common Ajax Function