This is a common issue if you are also using Cloudflare.

The issue with Layerslider is due to how Cloudflare is changing your site output.

See here

Try disabling any form of minification/caching in Cloudflare including Rocketscript and see if that resolves the issue.

You'll also need to flush any cloudflare caches and try in a clean browser session.