Write js code in Native and make app safe