LPS-27729 Remove redundant javascript code

@JorgeFerrer, @ipeychev