added template and map js