Added Javascript

Added some simple javascript to start the read and write policy