make js code better in cuctom fields locations