added basic functionality
added basic javascript action
added basic period test