remove unnecessary validation, also  - use false and true values for src  - reduce if statements
remove unnecessary validation, also
 - use false and true values for src
 - reduce if statements

etpinard/plotly.js,aburato/plotly.js,plotly/plotly.js,aburato/plotly.js,etpinard/plotly.js,plotly/plotly.js,etpinard/plotly.js,plotly/plotly.js,plotly/plotly.js