Resolved js issue for saving vehicle