Fix double js script implementation