added the bed view plugin and js