move capturephoto js from layout.cshtml