added javascript code for lr entries